package com.feng.springboot.hibernate.demo.entity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;

import java.io.Serializable;

@Entity
public class TestHibernateEntity implements Serializable {

    @Id
    @Column(name ="ID",nullable=false,length=32)
    int id;
    /**
     * 姓名
     */
    String name;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
